package cn.tqfeiyang.springplus.system.request;

import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.tqfeiyang.springplus.framework.validation.*;
import jakarta.validation.constraints.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 角色请求类
 *
 * @author tqfeiyang
 * @since 2024-08-01
 */
@Data
public class RoleDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "编码不能为空", groups = WhenCreate.class)
    @Size(max = 100, message = "编码长度不能超过100字符")
    @Schema(description = "编码")
    private String code;

    @NotBlank(message = "名称不能为空", groups = WhenCreate.class)
    @Size(max = 32, message = "名称长度不能超过32字符")
    @Schema(description = "名称")
    private String name;
}